﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace YJ.JobService
{
    public partial class Loading : Form
    {
        public Loading()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            //this.Close();
        }

        private static Loading loading = new Loading();
        public static void ShowLoading()
        {
            Task.Run(() =>
            {
                loading.ShowDialog();
            });
        }
        public static void CloseLoading()
        {
            loading.Hide();
        }
    }
}
